package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.SaleList;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Mapper
@Component
public interface SaleListDao {

    //保存销售单
    void save(SaleList saleList);
    //查询销售单
    List<SaleList> selectList(String saleNumber, Integer customerId, Integer state, Date start, Date end);
    //删除销售单
    void delete(Integer saleListId);
    //根据id获取订单
    SaleList getById(Integer saleListId);
    //修改订单状态
    void updateState(Integer saleListId, int state);
}
